package com.cangmaomao.lib.utils

import android.annotation.SuppressLint
import java.text.SimpleDateFormat
import java.util.*

object DateUtils {

    val DATA_A = "yyyy-MM-dd HH:mm:ss"


    @SuppressLint("SimpleDateFormat")
    fun fromDate(cal: Calendar): String {
        val sf = SimpleDateFormat(DATA_A)
        return sf.format(cal.time)
    }


}